package com.xiaoyu.cloudmusic.dao;

import com.xiaoyu.cloudmusic.pojo.Account;
import com.xiaoyu.cloudmusic.pojo.PlayListDetail;
import com.xiaoyu.cloudmusic.pojo.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AccountsMapper {
    public Account findOne(@Param("account")  String account,@Param("password")  String password);
    public int addAccount(@Param("account")  String account,@Param("password")  String password,@Param("uuid") String uuid);
    public int addUserInfo(UserInfo userInfo);
    public UserInfo getUserInfoByUUID(String uuid);
    public int upDateUserInfo(UserInfo userInfo);
    public int updateAvatar(@Param("photoPath") String photoPath,@Param("uuid") String uuid);
    public UserInfo findUserInfoByUUID(@Param("uuid") String uuid);
    public List<PlayListDetail> getUserPlayList(@Param("uuid") String uuid);
}
